z<%@ page import="org.ibiblio.terasaur.item.Collection" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="thin_sidebar" />
        <g:set var="entityName" value="${message(code: 'collection.label', default: 'Collection')}" />
        <content tag="title">Edit collection ${collectionInstance?.name} (${collectionInstance?.id})</content>
    </head>
    <body>
        <div class="body hentry">
            <g:hasErrors bean="${collectionInstance}">
            <div class="errors">
                <g:renderErrors bean="${collectionInstance}" as="list" />
            </div>
            </g:hasErrors>

            <div class="nav">
                <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span> |
                <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
            </div>
            <div class="clear"></div>
            <div class="rule"><hr /></div>

            <div class="full full-content">
                <h3>Edit collection ${collectionInstance?.name} (${collectionInstance?.id})</h3>
<tmpl:/collection/edit_form buttonType="edit" />
                <div class="clear"></div>
                <div class="edit edit-item lowered">
                    <g:link id="${collectionInstance?.id}" class="edit-button">${message(code: 'item.cancel.button.text')}</g:link>
                </div>
            </div>
        </div>
    </body>
</html>
